/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package com.oop.example.processing;

/**
 *
 * @author -
 */
public class ParseError extends RuntimeException {

    private int position;
    private String msg;

    public ParseError(int position, String msg) {
        this.position = position;
        this.msg = msg;
    }

    @Override
    public String getMessage() {
        return msg;
    }

    public int getPosition() {
        return position;
    }
}